﻿using System;
using System.IO;

namespace OpenLS.Spreadsheet.Formats.Biff.Records
{
    internal class CalcCountRecord : BiffRecord
    {
        private ushort cIter = 100;

        protected override void ReadContent(BiffReaderContext context, int length)
        {
            cIter = context.ReadUInt16();
        }

        internal override BiffRecordType RecordType
        {
            get { return BiffRecordType.CalcCount; }
        }

        internal override void WriteContent(BiffWriterWorkbookContext context)
        {
            context.Writer.Write(cIter);
        }
    }
}